<?php

session_start();

$validata_username = isset($_SESSION['validata_username'])? $_SESSION['validata_username'] : '';
$validata_password = isset($_SESSION['validata_password'])? $_SESSION['validata_password'] : '';

?>


<html>
<head>
    <meta charset="utf-8"/>
    <title>用户登录</title>
</head>
<body>
    <h1>用户登录</h1>
    <form action="login.php" method="post">
        用户名：<input type="text" name="username" value="" /><font color="red">
        <?php echo $validata_username; ?></font><br/><br/>
        密&nbsp;&nbsp;&nbsp;码: <input type="password" name="password" value="" />
        <font color="red"><?php echo $validata_password; ?></font><br/><br/>
        <input type="submit" value="提交" />
    </form>
</body>
</html>